<template>
  <div class="retailmember">
      <div class="item" v-for="(team,index) in teamList" :key="index">
          <div class="left">
              <div class="img">
                  <img :src="team.avatar_text" />
              </div>
              <div class="content">
                  <div class="nickname">{{team.nickname}}</div>
                  <div class="tel">{{team.mobile}}</div>
              </div>
          </div>
          <div class="right">{{team.date}}</div>
      </div>
  </div>

  <Tabbar />
</template>

<script setup>
    const {proxy} = getCurrentInstance()
    const teamList = ref([])
    onBeforeMount(async() => {
        let result = await proxy.$GET({
            url:'/business/team'
        })
        teamList.value = result
    })
</script>

<style scoped>
  @import url('/assets/css/SaleBusiness.css');
</style>